<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%include("/app/resapi/style.html"){}%>
    <link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <link href="/module/jeDate/jedate.css" rel="stylesheet"/>
    <style type="text/css">
        .table > tbody > tr > td {
            vertical-align: middle;
        }
    </style>
</head>
<body style="overflow-y: auto;">
<div class="page-body" style="padding: 0px">
    <div class="page-container">
        <div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px">
            <div class="widget-header bordered-bottom bordered-palegreen">
                <span class="widget-caption">${i18n('sysmenu.releaseNews')}</span>
            </div>
            <div class="tab-content tabs-flat" style="padding-top: 0px;">
                <div class="row">
                    <div class="col-md-offset-2 col-md-8 col-sm-12 col-xs-12" style="padding: 0px">
                        <form class="form-horizontal form-bordered" id="form">
                            <table class="table table-hover table-striped table-bordered">
                                <tr>
                                    <td width="20%">${i18n('news.newsTitle')}：</td>
                                    <td colspan="3"><input type="hidden" id="newsId" name="newsId">
                                        <input type="text" class="form-control" id="newsTitle" name="newsTitle" placeholder="${i18n('news.newsTitle')}" maxlength="200">
                                    </td>
                                </tr>
                                <tr>
                                    <td width="20%">${i18n('news.newsType')}：</td>
                                    <td width="30%"><select id="newsType" name="newsType" class="form-control" style="border-radius: 0px;"></select></td>
                                    <td width="20%">${i18n('topOrNot')}：</td>
                                    <td width="30%">
                                        <div class="control-group">
                                            <label> <input type="radio" class="colored-danger" checked="checked" value="0" name="isTop"> <span class="text">${i18n('order')}</span>
                                            </label> <label> <input type="radio" class="colored-danger" value="1" name="isTop"> <span class="text">${i18n('topping')}</span>
                                        </label>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="20%">${i18n('system.userPriv')}：</td>
                                    <td width="30%" colspan="2">
                                        <textarea id="userPriv" name="userPriv" placeholder="${i18n('system.userPriv')}" rows="5" class="form-control" readonly="readonly"></textarea>
                                    </td>
                                    <td width="30%">
                                        <a style="cursor: pointer;" opt-id="userPriv" onclick="selectUser(this,'true');">${i18n('system.select')}</a>
                                        <a style="cursor: pointer;" onclick="clearSelect('userPriv')">${i18n('system.clear')}</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="20%">${i18n('system.deptPriv')}：</td>
                                    <td width="30%" colspan="2">
                                        <textarea id="deptPriv" name="deptPriv" placeholder="${i18n('system.deptPriv')}" rows="5" class="form-control" readonly="readonly"></textarea>
                                    </td>
                                    <td width="30%">
                                        <a style="cursor: pointer;" opt-id="deptPriv" onclick="selectDept(this,'true');">${i18n('system.select')}</a>
                                        <a style="cursor: pointer;" onclick="clearSelect('deptPriv')">${i18n('system.clear')}</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="20%">${i18n('system.levelPriv')}：</td>
                                    <td width="30%" colspan="2">
                                        <textarea id="levelPriv" name="levelPriv" placeholder="${i18n('system.levelPriv')}" rows="5" class="form-control" readonly="readonly"></textarea>
                                    </td>
                                    <td width="30%">
                                        <a style="cursor: pointer;" opt-id="levelPriv" onclick="selectUserLevel(this,'true');">${i18n('system.select')}</a>
                                        <a style="cursor: pointer;" onclick="clearSelect('levelPriv')">${i18n('system.clear')}</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4">${i18n('system.content')}：</td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        <div id="content" style="height: 300px"></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="20%">${i18n('system.beginTime')}：</td>
                                    <td width="30%">
                                        <input type="text" class="form-control" id="sendTime" readonly="readonly" name="sendTime" placeholder="${i18n('system.beginTime')}" style="cursor: pointer;">
                                    </td>
                                    <td width="20%">${i18n('system.endTime')}：</td>
                                    <td width="30%">
                                        <input type="text" class="form-control" id="endTime" readonly="readonly" name="endTime" placeholder="${i18n('system.endTime')}" style="cursor: pointer;">
                                    </td>
                                </tr>
                                <tr>
                                    <td width="20%">${i18n('attach')}：</td>
                                    <td width="30%" colspan="3">
                                        <div id="show_newsattach"></div>
                                        <a class="addfile" href="javascript:void(0)">${i18n('system.fileUpload')} <input data_value="" type="file" onchange="fileUpLoad('news','newsattach');" hidefocus="true" size="1" id="newsattach" name="newsattach"
                                                                                                                         class="addfile" multiple="multiple"></a> <a class="addfile" style="width: 200px;" href="#" op_id="newsattach" onclick="selectattach(this,'true')">${i18n('system.netFileSelect')}</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="20%">${i18n('system.attachPriv')}：</td>
                                    <td width="30%" colspan="3">
                                        <div class="control-group">
                                            <label> <input type="radio" class="colored-danger" value="1" name="attachPriv" checked="checked"> <span class="text">${i18n('readingOnline')}</span>
                                            </label> <label> <input type="radio" class="colored-danger" value="2" name="attachPriv"> <span class="text">${i18n('printingAllow')}</span>
                                        </label> <label> <input type="radio" class="colored-danger" value="3" name="attachPriv"> <span class="text">${i18n('downAllow')}</span>
                                        </label>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="20%">${i18n('messageSms')}：</td>
                                    <td width="30%" colspan="3">
                                        <div id="msgType"></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4" align="center">
                                        <a id="updatabut" href="javascript:void(0);" class="btn btn-maroon">${i18n('system.update')}</a>
                                        <a href="#" onclick="history.go(-1);" class="btn btn-palegreen">${i18n('system.back')}</a>
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="orgselectdiv"></div>
</body>
<%include("/app/resapi/sysjs.html"){}%>
<script type="text/javascript" src="/gobal/js/page/news/lang/${localeLang()}.js"></script>
<script type="text/javascript" src="/module/fileupload/pageoffice.js" id="po_js_main"></script>
<script type="text/javascript">
    var newsId = "${parameter.newsId}";
</script>
<!--Bootstrap  wysiwig Scripts-->
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.exedit.js"></script>
<script type="text/javascript" src="/module/fileupload/ajaxfileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/fileupload.js"></script>
<script type="text/javascript" src="/module/jeDate/jeDate.js"></script>
<script type="text/javascript" src="/module/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/module/ueditor/ueditor.all.js"></script>
<script type="text/javascript" src="/module/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="/module/orgselect/orgselect.js"></script>
<script type="text/javascript" src="/gobal/js/page/news/editnews.js"></script>
</html>
